package prototype.deep;

public class Client {

    public static void main(String[] args) throws CloneNotSupportedException {

        DeepPrototype p = new DeepPrototype();
        p.setName("小明");
        p.setTarget(new DeepCloneableTarget("哈哈","呵呵"));

        DeepPrototype p2 = (DeepPrototype) p.clone();

        System.out.println(p.getTarget().hashCode());
        System.out.println(p2.getTarget().hashCode());




    }


}
